package h.ku.eval
{
	public class SimpleRepeatEval extends FunctionEval
	{
		private var repeatValue:uint
		private var repeatIndex:uint = 0
		protected override function finishArgEval(value:*):void
		{
			if(argIndex == 0)
			{
				repeatValue = uint(value)
			}else{
				repeatIndex ++
				if(repeatIndex < repeatValue)
				{
					repeatIndex ++ 
					this.beginArgEval()
				}else{
					this.finishFunctionEval(null)
				}
			}
		}
	}
}